<template>
    <van-search 
        v-model="value" 
        shape="round" 
        background="#fff"
        placeholder="搜索商品名称" 
        @focus="onFocus"
    />
</template>

<script setup lang="ts">
import { ref } from 'vue'
const value = ref('')

const emit = defineEmits(['focus'])
const onFocus = () => {
    emit('focus')
}
</script>

<style scoped>
</style>
